/*
 * LoginResponse.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.response;

import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.net.BaseResponse;

import java.util.List;

/** 登录Response */
public class LoginResponse extends BaseResponse {

    public static final int USER_AGNET = 1;

    @SerializedName("data")
    private Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {

        @SerializedName("token")
        private String token;

        /** 是否是代理商。1表示是代理商 */
        @SerializedName("is_agent")
        private int isAgent;

        @SerializedName("user_id")
        private String userId;

        @SerializedName("region_list")
        private List<Region> regionList;

        @SerializedName("city")
        private String city;

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public int getIsAgent() {
            return isAgent;
        }

        public void setIsAgent(int isAgent) {
            this.isAgent = isAgent;
        }

        public List<Region> getRegionList() {
            return regionList;
        }

        public void setRegionList(List<Region> regionList) {
            this.regionList = regionList;
        }

        /** 地区 */
        public static class Region {

            @SerializedName("region_id")
            private String regionId;

            @SerializedName("region_name")
            private String regionName;

            @SerializedName("region_type")
            private String regionType;

            public String getRegionId() {
                return regionId;
            }

            public void setRegionId(String regionId) {
                this.regionId = regionId;
            }

            public String getRegionName() {
                return regionName;
            }

            public void setRegionName(String regionName) {
                this.regionName = regionName;
            }

            public String getRegionType() {
                return regionType;
            }

            public void setRegionType(String regionType) {
                this.regionType = regionType;
            }
        }
    }
}
